package com.bgq.trxpay.mapper;

import com.bgq.trxpay.model.MessageRecord;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description message_record
 * @author baiguoqiang
 * @date 2024-03-24
 */
@Mapper
@Repository
public interface MessageRecordMapper {

    /**
    * 新增
    * @author baiguoqiang
    * @date 2024/03/24
    **/
    int insert(MessageRecord messageRecord);

    /**
    * 刪除
    * @author baiguoqiang
    * @date 2024/03/24
    **/
    int delete(int id);

    /**
    * 更新
    * @author baiguoqiang
    * @date 2024/03/24
    **/
    int update(MessageRecord messageRecord);

    /**
    * 查询 根据主键 id 查询
    * @author baiguoqiang
    * @date 2024/03/24
    **/
    MessageRecord load(int id);

    /**
    * 查询 分页查询
    * @author baiguoqiang
    * @date 2024/03/24
    **/
    List<MessageRecord> pageList(int offset, int pagesize);

    /**
    * 查询 分页查询 count
    * @author baiguoqiang
    * @date 2024/03/24
    **/
    int pageListCount(int offset,int pagesize);

}